import request from '@/utils/request'

// 查询拼团审核列表
export function listGroupa(query) {
  return request({
    url: '/ruoyi-manage/group/pageshow',
    method: 'get',
    params: query
  })
}

// 查询拼团审核详细
export function getGroupa(id) {
  return request({
    url: '/ruoyi-manage/group/' + id,
    method: 'get'
  })
}

// 新增拼团审核
export function addGroupa(data) {
  return request({
    url: '/system/groupa',
    method: 'post',
    data: data
  })
}

// 修改拼团审核
export function updateGroupa(data) {
  return request({
    url: '/ruoyi-manage/group/put0',
    method: 'put',
    data: data
  })
}
// 不通过审核
export function updateGroupab(data) {
  return request({
    url: '/ruoyi-manage/group/put1',
    method: 'put',
    data: data
  })
}

// 删除拼团审核
export function delGroupa(id) {
  return request({
    url: '/system/groupa/' + id,
    method: 'delete'
  })
}

export function GroupApp(row) {
  return request({
    url: '/ruoyi-manage/group/GroupApp',
    method: 'post',
    data:row
  })
}
